package com.suray.wcs.service.execption;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class RobotOrderExecuteException extends RuntimeException {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * 设备编号
     */
    private String deviceNo;
    /**
     * 故障码
     */
    private int code;
    /**
     * 详细信息
     */
    private String message;

    public RobotOrderExecuteException(String deviceNo, int code, String message) {
        this.deviceNo = deviceNo;
        this.code = code;
        this.message = "设备编号:" + deviceNo + ",异常码:" + code + ",原因:" + message;
    }
}
